/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #28a745; /* 绿色背景 */
    padding: 20px;
    text-align: center;
    color: white; /* 白色文本 */
    border-bottom: 1px solid #ddd;
}

header h1 {
    margin-bottom: 10px;
    color: white; /* 白色标题 */
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    color: white; /* 白色链接 */
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #218838; /* 悬停时更深的绿色 */
    border-radius: 4px;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

main section {
    margin-bottom: 20px;
}

footer {
    background-color: #28a745; /* 绿色背景 */
    color: white; /* 白色文本 */
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* 班主任照片样式 */
.teacher-image {
    width: 200px;
    height: auto;
    border-radius: 50%;
    margin: 10px 0;
    border: 5px solid #28a745; /* 绿色边框 */
}

/* 调整文章间距 */
article + article {
    margin-top: 20px;
}

article {
    margin-bottom: 20px;
}

/* 最新新闻样式 */
#latest-news strong {
    color: #28a745; /* 绿色强调 */
}

/* 音乐欣赏推荐样式 */
#music-recommendation audio {
    width: 100%;
    margin-top: 10px;
}

#music-recommendation p a {
    color: #28a745; /* 链接为绿色 */
    text-decoration: none;
}

#music-recommendation p a:hover {
    text-decoration: underline;
}

/* 表单样式 */
form {
    margin-top: 10px;
}

label {
    font-weight: bold;
    color: #333;
}

textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

input[type="submit"] {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #28a745; /* 绿色按钮 */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #218838; /* 悬停时更深的绿色 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }
}